// 跟组件，所有的封装好的变量放到这里，好取值
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 获取token
  avatar: state => state.user.userInfo.staffPhoto, // 获取让图片
  name: state => state.user.userInfo.username// 获取昵称
}
export default getters
